import './styles/common/reset.scss';

import Vue from 'vue';
import router from './router.js'
import store from './vuex/store.js';
import App from './app.vue';

import VueAsyncData from 'vue-async-data';
import { sync } from 'vuex-router-sync';
// import * as filters from './filters/test.js';
import './util/rem';
import api from './vuex/api.js'
import fastclick from 'fastclick';

fastclick.attach(document.body);

// 注册指令
// Object.keys(filters).forEach(key => {
//   Vue.filter(key, filters[key])
// })

import LazyRender from 'vue-lazy-render'
Vue.use(LazyRender)
sync(store, router);

const { state } = store;

Vue.use(VueAsyncData);

const app = new Vue({
	router,
	store,
	...App,
}).$mount('#app');

export { app, router,store}
